package com.yxh.dao;

import com.yxh.pojo.FlowShip;
import com.yxh.pojo.User;
import com.yxh.pojo.UserKey;
import com.yxh.pojo.tree.BaseTreeGrid;
import com.yxh.pojo.vo.UserListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    int deleteByPrimaryKey(UserKey key);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(UserKey key);

    List<User> selectByUser(User user);

    List<UserListVO> selectUserByMoreData(@Param("userInfo")String userInfo);

    User selecyByPassword(@Param("password")String password, @Param("userId")String userId);

    int checkUsername(String username);

    int checkAccount(String account);

    int deleteById(String id);

    User selectByUserName(String username);

    User selectByAccount(String account);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int deleteByIds(String [] arr);

    List<User> selectByDept(String deptId);

    List<BaseTreeGrid> selectlist();
    List<BaseTreeGrid> selectNewlist(FlowShip flowShip);
    List<User> seleectByIds(String[] ids);

    List<Map<String,Object>> selectCheckedList(FlowShip flowShip);
}